﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace WebNext.Domain.Entities
{
	[XmlInclude(typeof(EntryHeaderElement))]
	[XmlInclude(typeof(EntryChapterElement))]
	[XmlInclude(typeof(EntryHtmlElement))]
	[XmlInclude(typeof(EntryCodeElement))]
	[XmlInclude(typeof(EntryImageElement))]
	public abstract class EntryElement
	{
		public int Order
		{
			get;
			set;
		}

		public EntryElementType Type
		{
			get;
			set;
		}

		public abstract bool ContainsText(string text);
	}
}
